public class java_text {
    public static void main(String[] args) {
import java.util.*;

        public class DataDeduplication {
            public static void main(String[] args) {
                Scanner scanner = new Scanner(System.in);

                String input = scanner.nextLine();

                String[] strArray = input.split(" ");

                LinkedHashSet<String> set = new LinkedHashSet<>(Arrays.asList(strArray));
            
                for (String element : set) {
                    System.out.print(element + " ");
                }
                scanner.close();
            }
        }
    }
    }

}
